
pf = fspecial('prewitt');
sf = fspecial('sobel');

moon_prewitt = imfilter(moon,pf);
moon_sobel = imfilter(moon,sf);


